Automatically scroll text caret to make it visible, when AT sets its
authorLi Yuan <li.yuan@sun.com>
Tue, 10 Jun 2008 05:40:42 +0000 (05:40 +0000)
committerLi Yuan <liyuan@src.gnome.org>
Tue, 10 Jun 2008 05:40:42 +0000 (05:40 +0000)
2008-06-10  Li Yuan  <li.yuan@sun.com>

        * gailtextview.c: (gail_text_view_set_caret_offset):
        Automatically scroll text caret to make it visible, when AT
        sets its offset.

svn path=/trunk/; revision=20344

modules/other/gail/ChangeLog
modules/other/gail/gailtextview.c

index 3944f975e8916a74d6ed1683da606f0537410955..8dc252ff80504af992d71c2f6d34c8bd1dc64cc6 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-10  Li Yuan  <li.yuan@sun.com>
+
+       * gailtextview.c: (gail_text_view_set_caret_offset):
+       Automatically scroll text caret to make it visible, when AT
+       sets its offset.
+
 2008-06-06  Li Yuan  <li.yuan@sun.com>
 
        * gail/gaillabel.c: (gail_label_real_notify_gtk):
index ea86ea7a73534ce52eb7476fcb29e84dd5bcca62..f8759cf29d8883ad518983dd0ddb23d0611b54c9 100644 (file)
@@ -496,6 +496,7 @@ gail_text_view_set_caret_offset (AtkText *text,
 
   gtk_text_buffer_get_iter_at_offset (buffer,  &pos_itr, offset);
   gtk_text_buffer_place_cursor (buffer, &pos_itr);
+  gtk_text_view_scroll_to_iter (view, &pos_itr, 0, FALSE, 0, 0);
   return TRUE;
 }